﻿namespace HySoft.Cash.BaseClass
{
    using System;
    using System.Web;
    using System.Web.UI;

    public class CommonDialog
    {
        public static void Show(string message)
        {
            message = message.Replace("\"", "\\\"");
            message = message.Replace("'", @"\'");
            string str2 = "<script language='javascript'>" + Environment.NewLine;
            string script = (str2 + "window.alert('" + message + "')" + Environment.NewLine) + "</script>" + Environment.NewLine;
            ((Page) HttpContext.Current.Handler).RegisterStartupScript("", script);
        }
    }
}

